//模板接口相关的函数
import request from "../../utils/request"

//添加模板
export const Addtemplates = (data) => {
    return request.post("/api/dossier_templates/store", (data))
}
//案卷模板组合列表
export const templates = (params) => {
    return request.get("/api/dossier_templates/index", { params })
}
//获取案卷构成模板详情
export const dossiertemplates = (params) => {
    return request.get("/api/dossier_templates/show", { params })
}
//软删除案卷构成模板
export const deltemplates = (data) => {
    return request.post("/api/dossier_templates/destroy", data)
}
//编辑案卷构成模板
export const Modifydeltemplates = (data) => {
    return request.post("/api/dossier_templates/update", data)
}
//批量软删除案卷构成模板
export const deltemplatesMore = (data) => {
    return request.post("/api/dossier_templates/destroyMore", data)
}
//案卷构成模板回收站
export const dossiertemplatesRecycle = (params) => {
    return request.get("/api/dossier_templates/recycle", { params })
}
//案卷构成模板恢复单个回收站
export const dossiertemplatesretrieve = (data) => {
    return request.post("/api/dossier_templates/retrieve", (data))
}
//案卷构成模板批量恢复回收站
export const dossiertemplatesretrieveMore = (data) => {
    return request.post("/api/dossier_templates/retrieveMore", (data))
}
//案卷构成模板删除回收站
export const dossiertemplatesdel = (data) => {
    return request.post("/api/dossier_templates/delete", data)
}
//案卷构成模板批量删除回收站
export const dossiertemplatesdelMore = (data) => {
    return request.post("/api/dossier_templates/deleteMore", data)
}
//添加案卷构成组合
export const combinations = (data) => {
    return request.post("/api/dossier_combinations/store", (data))
}
//获取案卷构成列表
export const dossierCombinations = (params) => {
    return request.get("/api/dossier_combinations/index", { params })
}
//查询单个案卷模板组合
export const Seecombinations = (params) => {
    return request.get("/api/dossier_combinations/show", { params })
}
//编辑单个案卷模板组合
export const Modifycombinations = (data) => {
    return request.post("/api/dossier_combinations/update", data)
}
//软删除案卷模板组合
export const delCombinations = (data) => {
    return request.post("/api/dossier_combinations/destroy", data)
}
//批量软删除案卷模板组合
export const delCombinationsMore = (data) => {
    return request.post("/api/dossier_combinations/destroyMore", data)
}
//案卷模板组合回收站
export const dossierCombinationsrecycle = (params) => {
    return request.get("/api/dossier_combinations/recycle", { params })
}
//案卷模板组合回收站恢复
export const dossierCombinationsretrieve = (data) => {
    return request.post("/api/dossier_combinations/retrieve", (data))
}
//案卷模板组合回收站批量恢复
export const dossierCombinationsretrieveMore = (data) => {
    return request.post("/api/dossier_combinations/retrieveMore", (data))
}
//案卷模板组合回收站永久删除
export const dossierCombinationsdelete = (data) => {
    return request.post("/api/dossier_combinations/delete", data)
}
//案卷模板组合回收站批量永久删除
export const dossierCombinationsdeleteMore = (data) => {
    return request.post("/api/dossier_combinations/deleteMore", data)
}
//获取分类模板列表
export const classifyTemplates = (params) => {
    return request.get("/api/classify_templates/index", { params })
}
//创建分类模板
export const classifytemplates = (data) => {
    return request.post("/api/classify_templates", (data))
}
//查询单个分类模板
export const seeclassifytemplates = (params) => {
    return request.get("/api/classify_templates", { params })
}
//添加分类
export const Addclassifies = (data) => {
    return request.post("/api/classifies/store", (data))
}
//获取分类目录列表
export const classifies = (params) => {
    return request.get("/api/classifies/index", { params })
}
//查询单个分类目录
export const seeClassifies = (params) => {
    return request.get("/api/classifies/show", { params })
}
//分类目录回收站
export const companiesRecycle = (params) => {
    return request.get("/api/classifies/recycle", { params })
}
//软删除分类目录
export const delClassifies = (data) => {
    return request.post("/api/classifies/destroy", data)
}
//修改分类目录
export const modifyClassifies = (data) => {
    return request.post("/api/classifies/update", data)
}
//软删除参建单位下的分类目录
export const delProjectClassifies = (data) => {
    return request.post("/api/project_classifies/destroy", data)
}
//恢复参建单位下的分类目录
export const retrieve = (data) => {
    return request.post("/api/project_classifies/retrieve", data)
}
//批量恢复参建单位下的分类目录
export const retrieveMore = (data) => {
    return request.post("/api/project_classifies/retrieveMore", data)
}
//编辑参建单位分类目录
export const editProjectClassifies = (data) => {
    return request.post("/api/project_classifies/update", data)
}
//永久删除参建单位下的分类目录
export const delProjectClass = (params) => {
    return request.delete("/api/project_classifies/delete", { params })
}
//永久批量删除参建单位下的分类目录
export const delProjectClassMore = (params) => {
    return request.delete("/api/project_classifies/deleteMore", { params })
}
//参建单位下的分类目录
export const ProjectClassRecycle = (params) => {
    return request.get("/api/project_classifies/recycle", { params })
}

//查询参建单位下的分类目录
export const seeClassifiesinfo = (params) => {
    return request.get("/api/project_classifies/classifies_info", { params })
}

//参建单位新建分类目录
export const projectClassify = (data) => {
    return request.post("/api/project_classifies/store", (data))
}
//分类目录设置或取消单个参建单位
export const partCompanyStatus = (data) => {
    return request.post("/api/classifies/part_company_status", (data))
}
//从回收站恢复分类目录
export const retrieveClassifies = (data) => {
    return request.post("/api/classifies/retrieve", data)
}
//从回收站批量恢复分类目录
export const retrieveClassifiesMore = (data) => {
    return request.post("/api/classifies/retrieveMore", data)
}
//从回收站永久删除分类目录
export const deleteClassifies = (params) => {
    return request.delete("/api/classifies/delete", { params })
}
//从回收站批量永久删除分类目录
export const deleteClassifiesMore = (params) => {
    return request.delete("/api/classifies/deleteMore", { params })
}
//匹配分类模板列表
export const classTemplate = (data) => {
    return request.post("/api/projects/set_classify_template_id", (data))
}
//分类目录树状图
export const treeClassifies = (params) => {
    return request.get("api/classifies/tree_classifies", { params })
}
//新增案卷目录
export const bookTitles = (data) => {
    return request.post("/api/book_titles/store", data)
}
//新增插入一行案卷目录
export const bookTitlesOne = (data) => {
    return request.post("api/book_titles/insert_one_row", data)
}
//删除参建单位
export const delpartCompanies = (data) => {
    return request.post("/api/part_companies/destroy", data)
}
//查询单个参建单位
export const GetpartCompanies = (params) => {
    return request.get("/api/part_companies/show", { params })
}
//检索阶段参建单位
export const partCompaniesList = (params) => {
    return request.get("/api/part_companies/get_list", { params })
}
//案卷目录列表
export const BookTitles = (params) => {
    return request.get("/api/book_titles/index", { params })
}
//查询单个案卷目录
/* export const BtnBookTitles = (params) => {
    return request.get("/api/book_titles/" + params.id, {params})
} */
//查询单个案卷目录
export const BtnBookTitles = (params) => {
    return request.get("/api/book_titles/show", { params })
}
//编辑案卷目录
export const modifyBookTitles = (data) => {
    return request.post("/api/book_titles/update", data)
}
//软删除案卷目录
export const delBookTitles = (data) => {
    return request.post("/api/book_titles/destroy", data)
}
//批量软删除案卷目录
export const delBookTitlesMore = (data) => {
    return request.post("/api/book_titles/destroyMore", data)
}
//案卷问题标记
export const BookTitlesproblem = (data) => {
    return request.post("/api/book_titles/problem_mark", data)
}
//案卷问题解决
export const BTitleproblemresolve = (data) => {
    return request.post("/api/book_titles/problem_resolved", data)
}
//卷内问题标记
export const bookCatalogsproblem = (data) => {
    return request.post("/api/book_catalogs/problem_mark", data)
}
//卷内问题解决
export const bCatalogsproblemresolve = (data) => {
    return request.post("/api/book_catalogs/problem_resolved", data)
}
//卷内状态开关
export const bookCatalogsisPic = (data) => {
    return request.post("/api/book_catalogs/is_pic", data)
}
/* //案卷目录导入
export const BookTitlesimport = (data) => {
    return request.post("/api/book_titles/import", (data))
} */
//案卷目录回收站
export const BookTitlesrecycle = (params) => {
    return request.get("/api/book_titles/recycle", { params })
}
//检查案卷目录
export const Bookcheck = (data) => {
    return request.post("api/book_titles/check", (data))
}
//检查卷内目录
export const Catalogscheck = (data) => {
    return request.post("api/book_catalogs/check", (data))
}
//案卷目录回收站恢复
export const BookTitlesretrieve = (data) => {
    return request.post("/api/book_titles/retrieve", (data))
}
//案卷目录回收站批量恢复
export const BookTitlesretrieveMore = (data) => {
    return request.post("/api/book_titles/retrieveMore", (data))
}
//案卷目录回收站永久删除
export const BookTitlesdelete = (data) => {
    return request.post("/api/book_titles/delete", { data })
}
//案卷目录回收站批量永久删除
export const BookTitlesdeleteMore = (data) => {
    return request.post("/api/book_titles/deleteMore", { data })
}
//创建分类模板
export const AddclassifyTemplates = (data) => {
    return request.post("/api/classify_templates/store", (data))
}
//查询单个分类模板
export const seeclassifyTemplates = (params) => {
    return request.get("/api/classify_templates/show", { params })
}
//修改单个分类模板
export const modifyclassifyTemplates = (data) => {
    return request.post("/api/classify_templates/update", data)
}
//软删除单个分类模板
export const delclassifyTemplates = (data) => {
    return request.post("/api/classify_templates/destroy", data)
}
//软删除批量分类模板
export const delclassRetrieveMore = (data) => {
    return request.post("/api/classify_templates/destroyMore", data)
}
//分类模板回收站
export const classifyTemplatesrecycle = (params) => {
    return request.get("/api/classify_templates/recycle", { params })
}
//分类模板回收站恢复
export const classifyTemplatesretrieve = (data) => {
    return request.post("/api/classify_templates/retrieve", (data))
}
//分类模板回收站批量恢复
export const ClassRetrieveMore = (data) => {
    return request.post("/api/classify_templates/retrieveMore", (data))
}
//分类模板回收站永久删除
export const classifyTemplatesdelete = (data) => {
    return request.post("/api/classify_templates/delete", data)
}
//分类模板回收站批量永久删除
export const classifyTemplatesdeleteMore = (data) => {
    return request.post("/api/classify_templates/deleteMore", data)
}
//卷内目录
export const bookCatalogs = (params) => {
    return request.get("/api/book_catalogs/index", { params })
}
//获取卷内目录
export const getbookCatalogs = (params) => {
    return request.get("/api/search_stage/get_book_catalogs", { params })
}
//添加卷内目录
export const AddbookCatalogs = (data) => {
    return request.post("/api/book_catalogs/store", (data))
}
//查询单个卷内目录
export const seebookCatalogs = (params) => {
    return request.get("/api/book_catalogs/show", { params })
}
//修改单个卷内目录
export const modifybookCatalogs = (data) => {
    return request.post("/api/book_catalogs/update", data)
}
//软删除单个卷内目录
export const delbookCatalogs = (data) => {
    return request.post("/api/book_catalogs/destroy", data)
}
//批量软删除卷内目录
export const delbookCatalogsMore = (data) => {
    return request.post("/api/book_catalogs/destroyMore", data)
}
//卷内目录回收站
export const bookCatalogsrecycle = (params) => {
    return request.get("/api/book_catalogs/recycle", { params })
}
//卷内目录回收站恢复
export const bookCatalogsretrieve = (data) => {
    return request.post("/api/book_catalogs/retrieve", (data))
}
//卷内目录回收站批量恢复
export const bookCatalogsretrieveMore = (data) => {
    return request.post("/api/book_catalogs/retrieveMore", (data))
}
//卷内目录回收站永久删除
export const bookCatalogsdelete = (data) => {
    return request.post("/api/book_catalogs/delete", data)
}
//导出卷内export
export const bookCatalogsExport = (data) => {
    return request.post("/api/book_catalogs/export", data)
}
//卷内目录回收站批量永久删除
export const bookCatalogsdeleteMore = (data) => {
    return request.post("/api/book_catalogs/deleteMore", data)
}
//卷内目录PDF列表
export const bookContents = (params) => {
    return request.get("/api/book_contents/index", { params })
}
//设置当前项目id
export const setProjectId = (data) => {
    return request.post("/api/users/set_project_id", (data))
}
//参单位分类目录树状图
export const Classifies = (params) => {
    return request.get("/api/project_classifies/tree_list", { params })
}
//设置参建单位类型
export const companyType = (data) => {
    return request.post("/api/classifies/set_part_company_type", (data))
}

/* 提交案卷审批 */
export const submitBooktitles = (data) => {
    return request.post("api/approval/submit_book_titles", (data))
}
/* 提交借阅审批 */
export const submitBorrows = (data) => {
    return request.post("/api/approval/submit_borrows", (data))
}
/* 获取借阅审批 */
export const getBorrowsData = (params) => {
    return request.get("/api/approval/get_borrows_data", { params })
}
/* 借阅审批操作 */
export const borrowApprovalAction = (data) => {
    return request.post("/api/approval/borrow_approval_action", (data))
}
//检索阶段参见单位
export const getList = (params) => {
    return request.get("/api/part_companies/get_list", { params })
}
//温湿度
export const Humiture = (params) => {
    return request.get("/api/humidity/index", { params })
}
//添加温湿度
export const AddHumiture = (data) => {
    return request.post("/api/humiture/", (data))
}
//修改单个温湿度
export const modifyHumiture = (data) => {
    return request.post("/api/humiture/update", data)
}
//软删除单个温湿度
export const delHumiture = (data) => {
    return request.post("/api/humiture/", data)
}
//温湿度获取信息
export const HumitureIndex = (params) => {
    return request.get("/api/humiture/" + params)
}
//案卷批量替换
export const batchReplace = (data) => {
    return request.post("api/book_titles/batch_replace", (data))
}
//卷内批量替换
export const batchReplaces = (data) => {
    return request.post("api/book_catalogs/batch_replace", (data))
}
//卷内目录里面上传单个PDF文件
export const OneUP = (data) => {
    return request.post("api/book_contents/add_one_pdf", (data))
}
//卷内目录里面批量上传PDF文件
export const UPList = (data) => {
    return request.post("api/book_catalogs/batch_import_pdf", (data))
}
//案卷目录里面批量导入PDF文件
export const fileUPList = (data) => {
    return request.post("api/book_titles/batch_import_pdf_in_title", (data))
}
//导出卷内页面
export const exportPage = (params) => {
    return request.get("api/book_catalogs/export_page_num", { params })
}


//卷内目录里面左右切换PDF文件

export const quickSwitchPdf = (params) => {
    return request.get("/api/book_contents/quick_switch_pdf", { params })
}

/* //导出备考表
export const exportAppendix = (params) => {
    return request.get("api/book_title/export_appendix", {params})
} */

//获取导出文件的名字
export const GetTitle = (params) => {
    return request.get("api/book_titles/get_classify_title", { params })
}
//获取案卷模板组合列表
export const Getselects = (params) => {
    return request.get("api/dossier_combinations/get_selects", { params })
}
//项目匹配案卷组合列表
export const relateCombination = (data) => {
    return request.post("api/projects/relate_combination", (data))
}

/* 检索阶段获取案卷目录 */
export const getBooktitles = (params) => {
    return request.get("/api/search_stage/part_company/get_book_titles", { params })
}
/* 检索阶段获取项目分类 */
export const getProjectClass = (params) => {
    return request.get("/api/search_stage/get_project_classify", { params })
}
/* 项目分类获取案卷目录 */
export const getbookTitles = (params) => {
    return request.get("/api/search_stage/project_classify/get_book_titles", { params })
}
